home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: swampwiz@ix.netcom.com(Jean P. Laborde )
- Newsgroups: comp.lang.c++
- Subject: Re: Help! Program not pausing at 'cin >>'
- Date: 31 Jan 1996 05:03:42 GMT
- Organization: Netcom
- Message-ID: <4emt7e$doj@reader2.ix.netcom.com>
- References: <4eld84$bd7@hp5.online.apple.com>
- NNTP-Posting-Host: ix-no1-03.ix.netcom.com
- X-NETCOM-Date: Tue Jan 30 9:03:42 PM PST 1996
-
- In <4eld84$bd7@hp5.online.apple.com> davidrea@eworld.com (DavidRea)
- writes:
- >
- >Sometimes my programs don't pause to wait for input
- >at 'cin >>'. Also at cin.getline(), etc. So far I can't
- >tell what the difference is between programs that pause
- >as expected and programs that don't.
- >
- >I assume this has something to do with my input buffers having
- >stuff in them. Any advice on: a) What is going on? b) A surefire
- >way to make sure my buffers are clear?
- >
- >Thanks,
- >--David Rea
-
- Have you tried this line before the cin
-
- getch();
-
- There probably is an iostream command that does the same thing
-
- I might be wrong, but this seems to work for me.
-
- Comments Encouraged,
- The Swamp Wizard
-